package com.ruoyi.web.controller.mall.shopExtract.service.impl;

import com.ruoyi.web.controller.mall.shopExtract.domain.ShopExtract;
import com.ruoyi.web.controller.mall.shopExtract.mapper.ShopExtractMapper;
import com.ruoyi.web.controller.mall.shopExtract.service.IShopExtractService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * 商家提现记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-01-18
 */
@Service
public class ShopExtractServiceImpl implements IShopExtractService 
{
    @Autowired
    private ShopExtractMapper shopExtractMapper;

    /**
     * 查询商家提现记录
     * 
     * @param id 商家提现记录ID
     * @return 商家提现记录
     */
    @Override
    public ShopExtract selectShopExtractById(String id)
    {
        return shopExtractMapper.selectShopExtractById(id);
    }

    @Override
    public ShopExtract getByType(Map<String, Object> map) {
        return shopExtractMapper.getByType(map);
    }

    @Override
    public Map<String, Object> platPhone() {
        return shopExtractMapper.platPhone();
    }

    /**
     * 查询商家提现记录列表
     * 
     * @param shopExtract 商家提现记录
     * @return 商家提现记录
     */
    @Override
    public List<ShopExtract> selectShopExtractList(ShopExtract shopExtract)
    {
        return shopExtractMapper.selectShopExtractList(shopExtract);
    }

    /**
     * 新增商家提现记录
     * 
     * @param shopExtract 商家提现记录
     * @return 结果
     */
    @Override
    public int insertShopExtract(ShopExtract shopExtract)
    {
        return shopExtractMapper.insertShopExtract(shopExtract);
    }

    @Override
    public BigDecimal countByShopId(String shopId) {
        return shopExtractMapper.countByShopId(shopId);
    }

    /**
     * 修改商家提现记录
     * 
     * @param shopExtract 商家提现记录
     * @return 结果
     */
    @Override
    public int updateShopExtract(ShopExtract shopExtract)
    {
        return shopExtractMapper.updateShopExtract(shopExtract);
    }

    /**
     * 删除商家提现记录对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteShopExtractByIds(String[] ids)
    {
        return shopExtractMapper.deleteShopExtractByIds(ids);
    }

    /**
     * 删除商家提现记录信息
     * 
     * @param id 商家提现记录ID
     * @return 结果
     */
    @Override
    public int deleteShopExtractById(String id)
    {
        return shopExtractMapper.deleteShopExtractById(id);
    }
}
